package com.nhjf.common.web.applicationConteet;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SingletonForApplication {
   private SingletonForApplication(){
	   
   }
   private static ClassPathXmlApplicationContext application=null;
   
   public static synchronized  ClassPathXmlApplicationContext  getApplicationContext(){
	   if(application==null){
		      application =new ClassPathXmlApplicationContext( new String[] {"service/applicationContext.xml","service/serviceContext.xml","dao/dataAccessContext.xml"});
	   }
	   return application;
   }
}
